package com.ds.infrastructure.audit.client.track;

import com.ds.infrastructure.audit.common.entity.KbaBehavior;
import com.ds.infrastructure.audit.common.exception.KbaAuditException;

/**
 * 作用：
 *
 * @author WeiShaoying
 * @date 2020/7/27
 */
public interface KbaTrack {

    /**
     * Kba上报
     *
     * @param behavior
     * @throws KbaAuditException
     */
    void report(KbaBehavior behavior) throws KbaAuditException;


    /**
     * 上报并指定回调处理
     *
     * @param behavior
     * @param callback
     * @throws KbaAuditException
     */
    void report(KbaBehavior behavior, KbaCallback callback) throws KbaAuditException;


}
